<%-- 
    Document   : confirmacionEntrada
    Created on : 16-mar-2013, 14:53:11
    Author     : DEMRR
--%>

<%@page import="com.sun.crypto.provider.RSACipher"%>
<%@page import="bdclass.Inventario"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
                <meta name="description" content="Expand, contract, animate forms with jQuery wihtout leaving the page" />
                <meta name="keywords" content="expand, form, css3, jquery, animate, width, height, adapt, unobtrusive javascript"/>
				<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/>
                <link rel="stylesheet" type="text/css" href="css/log/style.css" />		
				<link href="http://fonts.googleapis.com/css?family=Arvo" rel="stylesheet" type="text/css" />
				<link href="css/style in.css" rel="stylesheet" type="text/css" media="screen" />
        <title>JSP Page</title>
    </head>
    <body>
         <%
            Class.forName("org.postgresql.Driver");
            
            Inventario inv=new Inventario();
            
            //String entero=String.valueOf(request.getParameter("txtCantidad")).split(".")[0];
            //String decimal=String.valueOf(request.getParameter("txtCantidad")).split(".")[1];
            
            float canti=Float.parseFloat(String.valueOf(request.getParameter("txtCantidad")));
            
            inv.InsertarEntrada(canti,
                                (Integer.parseInt(String.valueOf(request.getParameter("cmbIngrediente")))),
                                (Integer.parseInt(String.valueOf(request.getParameter("cmbSucursal")))));

            
%> 
		<div style="margin-top:100px; margin-left:400px; margin-right:400px;">
			<h1 style="background-color:#FFFFFF" align="center">INGRESO REALIZADO</h1>
		</div>
		<div align="center" style="margin-top:25px; margin-left:575px; margin-right:575px; background-color:#FFFFFF;">
		<input type="submit" name="btnok" id="btnok2" value="SALIR" onClick="location.href='http://localhost:8080/appSanMartin/admin.jsp'" />
		</div>
    </body>
</html>
